unit Unit6;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls,inifiles;

type
  TForm6 = class(TForm)
    Button1: TButton;
    Button2: TButton;
    Port: TComboBox;
    Label1: TLabel;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form6: TForm6;


implementation
uses  Unit1;

{$R *.dfm}

procedure TForm6.Button1Click(Sender: TObject);
begin
       ComName:=Trim(Port.Text);
       My_registry.OpenKey(KeyFile,true);
       My_registry.WriteString('temp1',ComName);
       Close;
end;

procedure TForm6.Button2Click(Sender: TObject);
begin
close;
end;

end.
